//总的相应结果
export interface ResponseData {
    code: string | number,
    message: string,
    ok: boolean
}

//role的数据
export interface RoleData {
    id?: number | string,
    roleName: string,
    remark?: any,
    createTime?: string,
    updateTime?: string
}

//role的返回数据列表
export type Records = RoleData[];

//分页查询结果
export interface RoleResponseData extends ResponseData{
    data: {
        records: Records
        total: number
        size: number
        current: number
        hitCount?: boolean
        searchCount?: boolean
        pages: number
    }
}

//菜单和按钮数据类型
export interface MenuData {
    id: number | string,
    createTime?: string,
    updateTime?: string,
    pid: number | string,
    name: string,
    code: string,
    toCode: string,
    type: number,
    status?: null,
    level: number,
    children: MenuData[],
    select: boolean
}

//权限返回值
export interface PermissionResponseDate extends ResponseData{
    data: MenuData[]
}